Skip to content

Pin Plexus Utils 4.0.3 in the Build Helper and wrapper realms - #285

Merged
jmanico merged 1 commit into
mainfrom
pin-build-helper-plexus-utils
Nov 30, 2026
Merged

jmanico merged 1 commit into
mainfrom
pin-build-helper-plexus-utils

Conversation

@jmanico

@jmanico jmanico commented Nov 30, 2026

Copy link
Copy Markdown
Member

Fixes a regression from #283.

Build Helper 3.8.0 declared Plexus Utils 4.1.0 directly. 3.9.0 no longer uses Plexus Utils and declares no version, so its realm now resolves 4.0.2 through file-management 3.2.0. GHSA-6fmv-xxpf-w3cw (directory traversal in extractFile) affects 4.0.0 through 4.0.2 and is fixed in 4.0.3, which is why the other 4.x realms pin 4.0.3. #283's description said the realm moved to 4.2.0; that was wrong, and it has been corrected. GitHub's dependency graph listed 4.0.2 after #283 merged; no alert had opened yet.

add-resource, the only Build Helper goal this build runs, doesn't call extractFile, but the realm executes and is submitted, so it gets the same pin as the others. The Maven Wrapper Plugin 3.3.4 realm also resolves 4.0.2. It only runs when the wrapper is regenerated and isn't submitted, but it is pinned too.

  • pom.xml: Plexus Utils 4.0.3 in both realms, with advisory comments.
  • scripts/tests/test_ci_policy.py: both realms join the 4.x lines in the Plexus Utils policy test.
  • DEPENDENCY_DECISIONS.md: a dated entry, with removal conditions and a note to compare resolved plugin closures, not only declared versions, when a plugin moves.
  • CHANGELOG.md: one entry.

Compatibility and validation

Local runs used macOS arm64, Homebrew OpenJDK 17.0.21 and the Maven 3.10.2 wrapper.

  • dependency:resolve-plugins -DexcludeTransitive=false resolves 4.0.3 in both realms. With and without -Psign-artifacts, no root build realm resolves an affected Plexus Utils version (the GPG and Central publisher realms resolve 3.6.4 under the signing profile).

  • ./mvnw -B -ntp clean verify passes, and all nine JARs are byte-identical to main's.

  • python3 -m unittest discover -s scripts/tests passes (38 tests).

  • I kept the change scoped and preserved relevant notices.

  • I checked documentation/changelog and tests for any behavior change.

  • This PR contains no credentials or private vulnerability evidence.

Build Helper 3.9.0 no longer declares Plexus Utils, so since #283 its
realm resolves 4.0.2 through file-management. GHSA-6fmv-xxpf-w3cw
affects 4.0.0 through 4.0.2 and is fixed in 4.0.3. The Maven Wrapper
Plugin realm resolves 4.0.2 as well. Pin both to 4.0.3 like the other
4.x realms, add them to the policy test and correct the decision record.
@jmanico
jmanico requested a review from jeremylong as a code owner November 30, 2026 12:47
@jmanico
jmanico merged commit f684e32 into main Nov 30, 2026
18 checks passed
@jmanico
jmanico deleted the pin-build-helper-plexus-utils branch November 30, 2026 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant